package com.springBoot.service;

import com.springBoot.mapper.RainQualityMapper;
import com.springBoot.entity.RainQuality;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RainQualityService implements IRainQualityService{
    @Resource
    private RainQualityMapper rainQualityMapper;

    @Override
    public List<RainQuality> cx() {
        return rainQualityMapper.cx();
    }

    @Override
    public int add(RainQuality rainQuality) {
        return rainQualityMapper.add(rainQuality);
    }

    @Override
    public int del(Integer id) {
        return rainQualityMapper.del(id);
    }

    @Override
    public int update(RainQuality rainQuality) {
        return rainQualityMapper.update(rainQuality);
    }

    @Override
    public RainQuality get(Integer id) {
        return rainQualityMapper.get(id);
    }
}
